package utilities.exceptions;

public class JFrameNameUsedException extends Exception 
{
	private static final long serialVersionUID = 1868173900513083457L;
	
	private String usedName = null;

	public JFrameNameUsedException(String usedName)
	{
		this.usedName = usedName;
	}
	
	public String getNameUsed()
	{
		return usedName;
	}
	
	public String toString()
	{
		return "The name " + usedName + " is already in use for a JFrame in JFrameManager.";
	}
}
